package com.computergames.server.message;


import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class ReadyRequestMessage extends Message implements HasJwtToken{
    boolean isReady;
    private String jwtToken;

    public ReadyRequestMessage() {
    }

    public ReadyRequestMessage(boolean isReady, String jwtToken) {
        this.isReady = isReady;
        this.jwtToken = jwtToken;
    }

    @Override
    public int getMessageType() {
        return ReadyRequestMessage;
    }
}
